package com.gengzp.common.model.message.req;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import com.gengzp.common.enums.YesNoEnum;
import com.gengzp.common.model.pagination.req.PaginationReq;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @ClassName PageMqMessageReq
 * @Description
 * @Author gengzp
 * @Date 2025/6/2 21:07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "分页查询消息请求实体")
public class PageMqMessageReq extends PaginationReq {

    @Serial
    private static final long serialVersionUID = 6606690467735191437L;

    /**
     * 主题名
     */
    @ApiModelProperty(value = "主题名")
    private String topicName;

    /**
     * 消息key
     */
    @ApiModelProperty(value = "消息key")
    private String messageKey;

    /**
     * 消息tag
     */
    @ApiModelProperty(value = "消息tag")
    private String messageTag;

    /**
     * 是否被消费标识
     */
    @ApiModelProperty(value = "是否被消费标识", enumClass = YesNoEnum.class)
    private Integer isConsumed;

}
